using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TopographicProductionTools._DataManagement._Generalization
{
    /// <summary>
    /// <para>Polygon To Centerline</para>
    /// <para>Creates centerlines from polygon features. This tool is useful for creating centerlines from hydrographic polygons for use at smaller scales.</para>
    /// <para>根据面要素创建中心线。此工具可用于从水文面创建中心线，以便在较小比例下使用。</para>
    /// </summary>    
    [DisplayName("Polygon To Centerline")]
    public class PolygonToCenterline : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public PolygonToCenterline()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The polygon features that will be used to create the centerline.</para>
        /// <para>将用于创建中心线的面要素。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The output feature class for the centerlines.</para>
        /// <para>中心线的输出要素类。</para>
        /// </param>
        public PolygonToCenterline(object _in_features, object _out_feature_class)
        {
            this._in_features = _in_features;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "Topographic Production Tools";

        public override string ToolName => "Polygon To Centerline";

        public override string CallName => "topographic.PolygonToCenterline";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_features, _out_feature_class, _connecting_features];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The polygon features that will be used to create the centerline.</para>
        /// <para>将用于创建中心线的面要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The output feature class for the centerlines.</para>
        /// <para>中心线的输出要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Connecting Features</para>
        /// <para>The features to be used to ensure connectivity of the centerline with other features in a network. The centerline will link to the point or the shared boundary wherever a feature from a connecting feature class touches the input feature.</para>
        /// <para>用于确保中心线与网络中其他要素连通的要素。中心线将链接到连接要素类中的要素与输入要素接触的点或共享边界。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Connecting Features")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _connecting_features { get; set; } = null;


        public PolygonToCenterline SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}